package com.neu.service.impl;

import java.util.ArrayList;

import com.neu.dao.IresultDao;
import com.neu.dao.impl.ResultDao;
import com.neu.pojo.Result;
import com.neu.service.IresultService;

public class ResultService implements IresultService {
	private IresultDao resultDao = ResultDao.getInstance();
	
	private static IresultService resultService = new ResultService();
	private ResultService() {}
	public static IresultService getInstance() {
		return resultService;
	}

	//getall
	@Override
	public ArrayList<Result> list(){
		return resultDao.list();
	}
	
	//开始评估
	@Override
	public boolean record(Result r) {
		return resultDao.add(r);
	}
	
}
